object Demo004 {
  def main(args: Array[String]): Unit = {
    val stuList = List(("张三", 37, 90, 100), ("李四", 90, 73, 81), ("王五", 60, 90, 76), ("赵 六", 59, 21, 72), ("田七", 100, 100, 100))

    val stuList1 = stuList.filter(_._2 >= 60)
    println(stuList1)

    val stuList2 = stuList.map(x => x._1 -> (x._2 + x._3 + x._4))
    println(stuList2)

    val stuList3=stuList2.sortWith(_._2>_._2)
    println(stuList3)
  }
}
